Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle conflicts, and response wrapper. #310

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from
Open

Conversation

mestachs
Copy link
Collaborator

@mestachs mestachs commented Dec 28, 2022

dhis2 changed it's api and http status code since 2.38

  • 409 (so http client lib will throw an exception)
  • return the "payload" wrapped in a response

I've adapted by just "catching and unwrapping" when it happens

@mestachs mestachs marked this pull request as ready for review January 9, 2023 09:51
@mestachs mestachs changed the title WIP : handle conflicts, and response wrapper. Handle conflicts, and response wrapper. Jan 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant